package sdw.ufal.p3.entity;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import gov.tjpr.entity.PersistableEntity;

@Entity
@Table(name="atividade")
public abstract class Atividade  implements PersistableEntity<Long>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "id")
	private Long id;
	
	@Column(name = "descricao")
	private String descricao;
	
	@ManyToOne
	@JoinColumn(name="idProcesso")
	private Processo processo;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public void setProcesso(Processo processo) {
		this.processo = processo;
	}

	public Processo getProcesso() {
		return processo;
	}
	
	
}
